﻿using SqlSugar;
using System;

namespace SEIPropertyDataService.Entity.Models
{
    /// <summary>
    /// 用户角色关系模型
    /// </summary>
    [SugarTable("userrole")]
    public class UserRoleModel
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [SugarColumn(IsNullable = false)]
        public string UserId { get; set; }
        /// <summary>
        /// 角色ID
        /// </summary>
        [SugarColumn(IsNullable = false)]
        public string RoleId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(IsNullable = false, IsOnlyIgnoreUpdate = true)]
        public DateTime CreatedTime { get; set; }
    }
}
